import request from '@/utils/request'
import { downFile } from '@/utils/request'


export function getWorkstationList(query) {
    return request({
      url: '/mes/md/workstation/list',
      method: 'get',
      params: query,
    })
  }
  
  export function insertWorkstation(data) {
    return request({
      url: '/mes/md/workstation/addWorkstation',
      method: 'post',
      data: data,
      contextType:"application/json"
    })
  }
  
  
  export function updateWorkstation(data) {
    return request({
      url: '/mes/md/workstation/updateWorkstation',
      method: 'post',
      data: data,
      contextType:"application/json"
    })
  }
  
  
  export function delWorkstation(data) {
    return request({
      url: '/mes/md/workstation/delWorkstation',
      method: 'post',
      data: data,
      contextType:"application/json"
    })
  }
  
  
  export function getworkLineList(query) {
    return request({
      url: '/mes/md/workstation/getworkLineList',
      method: 'get',
      params: query,
    })
  }